﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../../scripts/boot.js" type="text/javascript"></script>
    
    <script src="DeptTree2.js" type="text/javascript"></script>

</head>
<body>
    <h4>HTML创建</h4>
    <div id="tree" class="my-depttree2" url="../../demo/data/listTree.txt"></div>

    <h4>JS创建</h4>
    
</body>
</html>
<script type="text/javascript">
    var tree2 = new DeptTree2();
    tree2.set({
        url: "../../demo/data/listTree.txt"
    });
    tree2.render(document.body);

</script>